package Test1;

public class Question5 {

    private String name;
    private int age;

    public Question5(String name,int age){
        this.name=name;
        this.age=age;
    }

    public void display(){
        System.out.println("name:"+name+" age:"+age);
    }

    public static void main(String[] args) {
        Question5 q5 = new Question5("wing",29);
        q5.display();
    }

}
